import "package:ct_pa_majordomo/pages/device/electricity_meter/add_meter/index.dart";
import "package:ct_pa_majordomo/pages/device/electricity_meter/base/index.dart";
import "package:ct_pa_majordomo/pages/device/electricity_meter/detail/index.dart";
import "package:ct_pa_majordomo/pages/device/electricity_meter/index.dart";
import "package:ct_pa_majordomo/pages/device/electricity_meter/ope_record/index.dart";
import "package:ct_pa_majordomo/pages/device/electricity_meter/power/index.dart";
import "package:ct_pa_majordomo/pages/device/electricity_meter/setting/index.dart";
import "package:ct_pa_majordomo/pages/device/electricity_meter/use_record/index.dart";
import "package:ct_pa_majordomo/router/keys.dart";
import "package:flutter/material.dart";

class ElectricityMeterRoutes {
  static Map<String, WidgetBuilder> getRoutes(BuildContext context) {
    return {
      ///电表
      Keys.DEVICE_ELECTRICITYMETER: (context, {arguments}) => const ElectricityMeter(),
      ///电表 添加电表
      Keys.DEVICE_ELECTRICITYMETER_ADD: (context, {arguments}) => const AddMeter(),
      ///电表 详情
      Keys.DEVICE_ELECTRICITYMETER_DETAIL: (context, {arguments}) => Detail(electricityMeterId: arguments),
      ///电表 用电记录
      Keys.DEVICE_ELECTRICITYMETER_USE_RECORD: (context, {arguments}) => UseRecord(id: arguments),
      ///电表 操作记录
      Keys.DEVICE_ELECTRICITYMETER_OPE_RECORD: (context, {arguments}) => const OpeRecord(),
      ///电表 基础信息
      Keys.DEVICE_ELECTRICITYMETER_BASE: (context, {arguments}) => Base(info: arguments),
      ///电表 设置
      Keys.DEVICE_ELECTRICITYMETER_SETTING: (context, {arguments}) => Setting(info: arguments),
      ///电表 电量信息
      Keys.DEVICE_ELECTRICITYMETER_POWER: (context, {arguments}) => const Power(),
    };
  }
}